package Controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/book")
public class BookController {


    @RequestMapping("/save")
    @ResponseBody
    //普通类型传递
    public String save(String bookname,int id){
        System.out.println("book save:"+bookname+"---"+id);
        return "book save ok";
    }

    @RequestMapping("/search")
    @ResponseBody
    public String search(){
        System.out.println("book search");
        return "book1 book2 book3";
    }


}
